package minusjudge

class User {
    String userName
    String password 
    String email
    String role
    String institution 

    static hasMany=[clarifications:Clarification]

    
    static constraints = {
        userName(blank:false)
        password(blank:false,password:true)
        email(blank:false,email:true,unique:true)
        role(inList:["Admin","contestan","observer"])
        institution()
    }
}
